﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="ChangeRequestSubmittedList.aspx.cs" Inherits="Billing2.ChangeRequestSubmittedList"%>
<%@ Register src="~/Controls/ucPageTitle.ascx" tagname="ucPageTitle" tagprefix="uc2" %>
<%@ Register src="~/Controls/ucInProgress.ascx" tagname="ucInProgress" tagprefix="uc3" %>
<%@ Register src="~/Controls/ucSearch.ascx" tagname="ucSearch" tagprefix="uc4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" href="Css/jquery-ui-1.8.4.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="Scripts/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="Scripts/jquery-ui-1.8.4.custom.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<uc2:ucPageTitle ID="ucPageTitle1" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel5" runat="server">
    <ContentTemplate>
         <uc4:ucSearch ID="ucSearch" runat="server" />
    </ContentTemplate>
    </asp:UpdatePanel>
    <br />
     <asp:UpdatePanel ID="UpdatePanel3" runat="server">
        <ContentTemplate><div class="gridDetail">
            <asp:GridView ID="gvView" runat="server" CellPadding="4" CssClass="GridViewStyle"
                GridLines="Horizontal" AutoGenerateColumns="False" 
                OnRowCommand="gvView_RowCommand" AllowPaging="True" AllowSorting="True" EnableSortingAndPagingCallbacks="True" 
                onpageindexchanging="gvView_PageIndexChanging" onsorting="gvView_Sorting" 
                PageSize="50" PagerSettings-Mode="NumericFirstLast" Width="100%" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" ForeColor="Black">
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                <RowStyle CssClass="GridViewRowStyle" />
                <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                <HeaderStyle CssClass="GridViewHeaderStyle" BackColor="#333333" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                <Columns>
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="No">
                        <ItemTemplate>
                            <asp:Label ID="xCol01" runat="server" Text='<%#Container.DataItemIndex+1  %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" 
                        HeaderText="Request Date" SortExpression="CreatedDatetime">
                        <ItemTemplate>
                            <asp:Label ID="xCol02" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("CreatedDatetime")))%>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="CR No" 
                        SortExpression="ChangeRequestNo">
                        <ItemTemplate>
                            <asp:LinkButton ID="xCol03" runat="server" CommandName="editdata"  CommandArgument='<%#Common.EncryptData(Convert.ToString(Eval("ID")))%>' Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("ChangeRequestNo")))%>' PostBackUrl='<%#"ChangeRequest.aspx?token=" + Common.CreateToken()%>'></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="CR Type" 
                        SortExpression="ChangeRequestType">
                        <ItemTemplate>
                            <asp:Label ID="xCol04" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("ChangeRequestType")))%>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Organization" 
                        SortExpression="OrgIDName">
                        <ItemTemplate>
                            <asp:Label ID="xCol05" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("OrgIDName")))%>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Site" 
                        SortExpression="SiteIDName">
                        <ItemTemplate>
                            <asp:Label ID="xCol06" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("SiteIDName")))%>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" 
                        HeaderText="Cost Centre" SortExpression="CostCentreIDName">
                        <ItemTemplate>
                            <asp:Label ID="xCol07" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("CostCentreIDName")))%>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" 
                        HeaderText="Host Name" SortExpression="AssetID" Visible="true">
                        <ItemTemplate>
                            <asp:Label ID="xCol08" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("AssetID")))%>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" 
                        HeaderText="User Name" SortExpression="Username" Visible="true">
                        <ItemTemplate>
                            <asp:Label ID="xCol09" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("Username")))%>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" 
                        HeaderText="Ref No" SortExpression="Version" Visible="true">
                        <ItemTemplate>
                            <asp:Label ID="xCol10" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(Convert.ToString(Eval("Version")))%>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            </asp:GridView></div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel3">
    <ProgressTemplate>
        <uc3:ucInProgress ID="ucInProgress" runat="server" />        
    </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:HiddenField runat="server" ID="xChangeRequestID" Value="0" />   
</asp:Content>
